<script>
	export default {
		onLaunch: function() {
			// 临时用用
			if (window.location.pathname != '/pages/index/active' && window.location.pathname != '/pages/index/ads' &&
				window.location.pathname != '/pages/index/transfer') {
				const res = uni.request({
					url: 'https://client-api.bfhldd28.com/check-order',
					header: {
						'Content-Type': 'application/json',
						'Authorization': uni.getStorageSync('access_token')
					},
					complete: function(res) {
						if (res.data.code == 50014 || !res.data.data) {
							uni.redirectTo({
								url: '/pages/index/active'
							});
						}
					}
				})
			}
		},
		onShow: function() {

			//	console.log('App Show')
		},
		onHide: function() {
			//	console.log('App Hide')
		},

	}
</script>

<style>
	@import "./uni_modules/vk-uview-ui/index.scss";
	/* #ifdef H5 */
	uni-page-head {
		display: none;
	}

	/* #endif */
	.page-container {
		padding: 0 24rpx;
	}
	
</style>